package com.dou.yygh.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dou.yygh.model.order.OrderInfo;
import com.dou.yygh.vo.order.OrderCountQueryVo;
import com.dou.yygh.vo.order.OrderQueryVo;

import java.util.Map;

/**
 * Created with IntelliJ IDEA 2021.1 x64
 *
 * @Author: 窦义超
 * @Date: 2021/11/2021/11/17/14:47
 * @Description:
 */
public interface OrderService extends IService<OrderInfo> {
    //生成挂号订单
    Long saveOrder(String scheduleId, Long patientId);
    //根据订单id查询订单详情
    OrderInfo getOrder(String orderId);
    //订单列表（条件查询带分页）
    IPage<OrderInfo> selectPage(Page<OrderInfo> pageParam, OrderQueryVo orderQueryVo);
    /**
     * 取消订单
     * @param orderId
     */
    Boolean cancelOrder(Long orderId);
    /**
     * 就诊提醒
     */

    void patientTips();

    /**
     * 订单统计
     */
    Map<String, Object> getCountMap(OrderCountQueryVo orderCountQueryVo);

}
